package com.by.service.impl;

import com.by.bean.Corder;
import com.by.bean.Horder;
import com.by.mapper.CorderMapper;
import com.by.service.CorderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class CorderServiceImpl implements CorderService {
    @Autowired
    CorderMapper corderMapper;

    @Override
    public int save(Corder order) {
        return corderMapper.save(order);
    }
    public List query(Corder order){
        return corderMapper.query(order);
    }

    @Override
    public int updateStatus(Corder order) {
        return corderMapper.updateStatus(order);
    }

    @Override
    public List all(Horder order) {
        return corderMapper.all(order);
    }

}
